<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

</body>

<script>
  window.onmessage = function(e) {
    document.body.innerHTML=e.data;
    

    if(e.data==='init'){
      var uid = localStorage.getItem('egee@uuid',e.data);
      e.source.postMessage(uid, '*');
      return;
    }

    var uuid = localStorage.setItem('egee@uuid',e.data);
    
  };




</script>

</html>